<template>
  <div class="hello">
    <h1>{{ msg }}, {{count}}, 100- {{ count100 }}</h1>
    <button @click="onCountChange">click this {{ count }} times.</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  data() {
    return {
      count: 0
    }
  },
  computed: {
    count100() {
      return this.count * 100
    }
  },
  watch: {
    count(val) {
      console.log(val)
    }
  },
  mounted() {
    console.log(this)
  },
  methods: {
    onCountChange() {
      this.count += 1
    }
  }
}
</script>

<style scoped>
.hello {
  background: aqua;
}
</style>
